from config.database import db
from sqlalchemy import CHAR, Column, ForeignKey
import uuid

account_role = db.Table(
    'account_role',
    db.Model.metadata,
    Column('id', CHAR(36), primary_key=True, default=lambda: str(uuid.uuid4())),
    Column('account_id', CHAR(36), ForeignKey('account.id'), nullable=False),
    Column('role_id', CHAR(36), ForeignKey('role.id'), nullable=False)
)